﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using Highlearner_API;

namespace Highlearner
{
	public partial class FormFailedFiles : Form
	{
		public FormFailedFiles()
		{
			InitializeComponent();
		}

		public static void DisplayFileList(List<CFileItem> a_oFiles)
		{
			FormFailedFiles l_oForm = new FormFailedFiles();
			foreach (CFileItem l_oFile in a_oFiles)
			{
				l_oForm.listViewFiles.Items.Add(new ListViewItem(new string[] { l_oFile.Name, l_oFile.Folder.GetPath() }));
			}

			l_oForm.listViewFiles.AutoResizeColumn(1, ColumnHeaderAutoResizeStyle.ColumnContent);
			l_oForm.ShowDialog();
		}

		private void button1_Click(object sender, EventArgs e)
		{
			this.DialogResult = DialogResult.OK;
			this.Close();
		}
	}
}
